<?php
	$url = "http://apis.juhe.cn/wifi/local?key=3e779cd76d1fb42b17f768b731c09f93&lat=".$_GET['lat']."&lon=".$_GET['lon']."&gtype=2";
	$resultJson = getCurl($url);
	$result = json_decode($resultJson, true);

	function getCurl($url){//get https的内容
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL,$url);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);//不输出内容
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
		$result =  curl_exec($ch);
		curl_close ($ch);
		return $result;
	}
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
	<title>免费wifi列表</title>

	<!-- Bootstrap -->
	<link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">

</head>
<body>
	
</body>
</html>